/* static/css/contract-view.css */
.contract-view-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.back-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.module-header {
    margin-bottom: 1.5rem;
}

.module-title {
    font-size: 1.5rem;
    color: #333;
}

.contract-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.contract-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.contract-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.contract-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.contract-content {
    margin-bottom: 2rem;
}

.contract-section {
    margin-bottom: 1.5rem;
}

.contract-section h3 {
    font-size: 1.1rem;
    color: #4a6cf7;
    margin-bottom: 0.5rem;
}

.contract-section p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.signature-section div {
    padding: 0.8rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signature-valid {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.signature-invalid {
    background-color: #ffebee;
    color: #c62828;
}

.btn-verify {
    padding: 0.3rem 0.8rem;
    background-color: #4a6cf7;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
}

.legal-section {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
}

.legal-clauses {
    font-size: 0.9rem;
    line-height: 1.6;
}

/*履行记录*/
.fulfillment-records {
    margin-top: 2rem;
}

.fulfillment-records h3 {
    font-size: 1.1rem;
    color: #4a6cf7;
    margin-bottom: 1rem;
}

.fulfillment-records table {
    width: 100%;
    border-collapse: collapse;
}

.fulfillment-records th,
.fulfillment-records td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
}

.fulfillment-records th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.fulfillment-records tr:nth-child(even) {
    background-color: #f9f9f9;
}

/*附件列表*/
.attachment-records {
    margin-top: 2rem;
}

.attachment-records h3 {
    font-size: 1.1rem;
    color: #4a6cf7;
    margin-bottom: 1rem;
}

.attachment-records table {
    width: 100%;
    border-collapse: collapse;
}

.attachment-records th,
.attachment-records td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
}

.attachment-records th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.attachment-records tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 操作按钮样式 */
.btn-download, .btn-preview {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-download {
    background-color: #4e73df;
    color: white;
}

.btn-download:hover {
    background-color: #3a5ec0;
}

.btn-preview {
    background-color: #1cc88a;
    color: white;
}

.btn-preview:hover {
    background-color: #17a673;
}
/*无记录*/
.no-records {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* 按钮样式（与参考样式一致） */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    min-width: 100px;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.btn-back {
    background-color: #6c757d;
    color: white;
}

.btn-back:hover {
    background-color: #5a6268;
}

/* 合同内容样式 */
.contract-content {
    line-height: 1.8;
    font-size: 15px;
}

.contract-content h4 {
    margin: 1.2em 0 0.5em 0;
    color: #333;
    font-size: 16px;
}

.highlight {
    background-color: #fffde7;
    padding: 0 3px;
    border-bottom: 1px dashed #ffd600;
}

.general-terms {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

/* 敏感字段特殊样式 */
.sensitive-field {
    background-color: #ffebee;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contract-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .fulfillment-records table {
        display: block;
        overflow-x: auto;
    }

    .attachment-records table {
        display: block;
        overflow-x: auto;
    }
}